Platform Explorer / Nuxeo Platform 5.8

Component org.nuxeo.platform.audit.contentView.contrib

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.platform.audit.contentView.contrib">

  <extension target="org.nuxeo.ecm.platform.ui.web.ContentViewService"
    point="contentViews">

    <contentView name="DOCUMENT_HISTORY">

      <title>label.contentview.document.history</title>
      <translateTitle>true</translateTitle>
      <showTitle>true</showTitle>

      <genericPageProvider
        class="org.nuxeo.ecm.platform.audit.api.document.DocumentHistoryPageProvider">
        <property name="coreSession">#{documentManager}</property>
        <property name="generateUIComments">true</property>

        <whereClause docType="BasicAuditSearch">
          <predicate parameter="log.eventDate" operator="BETWEEN">
            <field schema="basicauditsearch" name="startDate" />
            <field schema="basicauditsearch" name="endDate" />
          </predicate>
          <predicate parameter="log.category" operator="=">
            <field schema="basicauditsearch" name="eventCategory" />
          </predicate>
          <predicate parameter="log.eventId" operator="IN">
            <field schema="basicauditsearch" name="eventIds" />
          </predicate>
          <predicate parameter="log.principalName" operator="=">
            <field schema="basicauditsearch" name="principalName" />
          </predicate>
        </whereClause>
        <parameter>#{currentDocument.id}</parameter>
        <sort column="log.eventDate" ascending="false" />
        <pageSize>10</pageSize>
        <maxPageSize>1000</maxPageSize>
      </genericPageProvider>

      <searchLayout name="basicauditsearch" filterDisplayType="quick" />
      <showFilterForm>true</showFilterForm>

      <showPageSizeSelector>true</showPageSizeSelector>
      <useGlobalPageSize>true</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentCreated</event>
        <event>documentChildrenChanged</event>
      </refresh>
      <cacheSize>10</cacheSize>
      <cacheKey>#{currentDocument.id}</cacheKey>

      <resultLayouts>
        <layout name="history_listing" title="history_listing"
          translateTitle="true" iconPath="/icons/document_listing_icon.png"
          showCSVExport="true" showPDFExport="false" />
      </resultLayouts>

    </contentView>

  </extension>

</component>